# -*- coding: utf-8 -*-

# pip install docling
from docling.document_converter import DocumentConverter
import os

os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"


def test_docling():
    source = "https://arxiv.org/pdf/2408.09869"
    converter = DocumentConverter()
    result = converter.convert(source)
    print(result.document.export_to_markdown())
    pass


if __name__ == '__main__':
    test_docling()
    pass
